package edu.xpu.project.user.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @ClassName: ProjectUser.java
 * @Description: 人员实体类
 *
 * @author liukang
 * @date 2017年4月17日 9:30:04
 * @version 
 * @since JDK 1.6
 */
@Entity(name="ProjectUser")
@Table(name="PROJECT_USER")
public class ProjectUser implements Serializable {
	
	private static final long serialVersionUID = -7594243612614253802L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Long id;

	private String name;				//姓名
	private String loginName;			//登录名
	private String pwd;					//密码
	private String sex;					//性别
	
	private Date birthDay;				//生日
	
	private String deptName;			//院系(部门)名
	private String majorName;			//专业名
	private String className;			//班级名
	
	private String userNo;				//人员编号(学生是学号, 老师则是编号)
	
	/*----------------- 系统属性 -------------------*/
	/*
	 * 1: 学生
	 * 2: 教师
	 */
	private Integer userType = 1;			//人员类型
	/*
	 * 1: 普通(默认)
	 * 2: 系统管理员(所有权限)
	 */
	private Integer authLevel = 1;		//用户权限
	private Date createDate;			//人员创建(录入)时间
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getLoginName() {
		return loginName;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	public String getPwd() {
		return pwd;
	}
	public void setPwd(String pwd) {
		this.pwd = pwd;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public Date getBirthDay() {
		return birthDay;
	}
	public void setBirthDay(Date birthDay) {
		this.birthDay = birthDay;
	}
	public String getDeptName() {
		return deptName;
	}
	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}
	public String getMajorName() {
		return majorName;
	}
	public void setMajorName(String majorName) {
		this.majorName = majorName;
	}
	public String getClassName() {
		return className;
	}
	public void setClassName(String className) {
		this.className = className;
	}
	public String getUserNo() {
		return userNo;
	}
	public void setUserNo(String userNo) {
		this.userNo = userNo;
	}
	public Integer getUserType() {
		return userType;
	}
	public void setUserType(Integer userType) {
		this.userType = userType;
	}
	public Integer getAuthLevel() {
		return authLevel;
	}
	public void setAuthLevel(Integer authLevel) {
		this.authLevel = authLevel;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	
}

